package atguigu05._super.exer2;

/**
 * ClassName: Cylinder
 * Package: atguigu03._extends.exer2
 * Description:
 *      修改继承内容的练习中定义的类Cylinder，在Cylinder中重写父类方法findArea()，用于计算圆柱的表面积
 * @Author BuTang
 * @Create 2023/3/6 10:26
 * @Version 1.0
 */
public class Cylinder extends Circle {
    private double length;

    public Cylinder() {
        length =1;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public double findVoluem(){
        return length*findArea();
    }
    public double findArea(){
        return super.findArea()+3.14*2*getRadius();
    }
}
